# Author    : CoffeeChicken
# Date      : 2020-10-28 19:39
# Function  : 演示


from threading import Thread
import time


def add1():
    for i in range(1, 20):
        print(i)


def add2():
    for i in range(30, 50):
        print(i)


if __name__ == '__main__':
    a1 = Thread(target=add1)
    a2 = Thread(target=add2)
    # a3 = Thread(target=add1(200, 300))
    # a4 = Thread(target=add1(300, 400))
    # a5 = Thread(target=add1(400, 500))
    a2.start()
    a1.start()
    # a3.start()
    # a4.start()
    # a5.start()
